home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / Filezilla Server / FileZilla_Server-0_9_41.exe / source / interface / GroupsDlg.h < prev    next >
C/C++ Source or Header  |  2011-11-06  |  3KB  |  101 lines

  1. // FileZilla Server - a Windows ftp server
  2.  
  3. // Copyright (C) 2002-2004 - Tim Kosse <tim.kosse@gmx.de>
  4.  
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the GNU General Public License
  7. // as published by the Free Software Foundation; either version 2
  8. // of the License, or (at your option) any later version.
  9.  
  10. // This program is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. // GNU General Public License for more details.
  14.  
  15. // You should have received a copy of the GNU General Public License
  16. // along with this program; if not, write to the Free Software
  17. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  18.  
  19. #if !defined(AFX_GROUPSDLG_H__3548112C_F36E_42D1_B073_78272B897DDA__INCLUDED_)
  20. #define AFX_GROUPSDLG_H__3548112C_F36E_42D1_B073_78272B897DDA__INCLUDED_
  21.  
  22. #if _MSC_VER > 1000
  23. #pragma once
  24. #endif // _MSC_VER > 1000
  25. // GroupsDlg.h : Header-Datei
  26. //
  27.  
  28. #include "..\Accounts.h"
  29.  
  30. /////////////////////////////////////////////////////////////////////////////
  31. // Dialogfeld CGroupsDlg 
  32. class CGroupsDlgGeneral;
  33. class CGroupsDlgSpeedLimit;
  34. class CGroupsDlgSharedFolders;
  35. class CGroupsDlgIpFilter;
  36.  
  37. class CGroupsDlg : public CSAPrefsDialog
  38. {
  39. // Konstruktion
  40. public:
  41.     CGroupsDlg(CWnd* pParent, bool localConnection);
  42.     ~CGroupsDlg();
  43.     BOOL GetAsCommand(char **pBuffer, DWORD *nBufferLength);
  44.     BOOL Init(unsigned char *pData, DWORD dwDataLength);
  45.     t_group* GetCurrentGroup();
  46.     bool IsLocalConnection() const { return m_localConnection; }
  47.  
  48. protected:
  49. // Dialogfelddaten
  50.     //{{AFX_DATA(CGroupsDlg)
  51.     enum { IDD = IDD_GROUPS };
  52.     CListBox    m_cGrouplist;
  53.     //}}AFX_DATA
  54.  
  55.  
  56. // ▄berschreibungen
  57.     // Vom Klassen-Assistenten generierte virtuelle Funktionsⁿberschreibungen
  58.     //{{AFX_VIRTUAL(CGroupsDlg)
  59.     public:
  60.     virtual BOOL PreTranslateMessage(MSG* pMsg);
  61.     protected:
  62.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV-Unterstⁿtzung
  63.     //}}AFX_VIRTUAL
  64.  
  65. // Implementierung
  66. protected:
  67.     CGroupsDlgGeneral *m_pGeneralPage;
  68.     CGroupsDlgSpeedLimit *m_pSpeedLimitPage;
  69.     CGroupsDlgSharedFolders *m_pSharedFoldersPage;
  70.     CGroupsDlgIpFilter *m_pIpFilterPage;
  71.  
  72.     void SetCtrlState();
  73.     int m_oldgroup;
  74.     BOOL Validate();
  75.     
  76.     typedef std::vector<t_group> t_GroupsList; 
  77.     typedef std::vector<t_user> t_UsersList;
  78.     t_GroupsList m_GroupsList;
  79.     t_UsersList m_UsersList;
  80.     bool m_localConnection;
  81.     bool m_insideSelchange;
  82.  
  83.     // Generierte Nachrichtenzuordnungsfunktionen
  84.     //{{AFX_MSG(CGroupsDlg)
  85.     virtual BOOL OnInitDialog();
  86.     afx_msg void OnSelchangeGrouplist();
  87.     virtual void OnOK();
  88.     afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  89.     afx_msg void OnGroupAdd();
  90.     afx_msg void OnGroupCopy();
  91.     afx_msg void OnGroupRemove();
  92.     afx_msg void OnGroupRename();
  93.     //}}AFX_MSG
  94.     DECLARE_MESSAGE_MAP()
  95. };
  96.  
  97. //{{AFX_INSERT_LOCATION}}
  98. // Microsoft Visual C++ fⁿgt unmittelbar vor der vorhergehenden Zeile zusΣtzliche Deklarationen ein.
  99.  
  100. #endif // AFX_GROUPSDLG_H__3548112C_F36E_42D1_B073_78272B897DDA__INCLUDED_
  101.